
class NaviEntity {
  List<DataBean>? data;
  int? errorCode;
  String? errorMsg;

  static NaviEntity? fromMap(Map<String, dynamic> map) {
    if (map == null) return null;
    NaviEntity naviEntityBean = NaviEntity();
    naviEntityBean.data = []..addAll(
      (map['data'] as List).map((o) => DataBean.fromMap(o)!)
    );
    naviEntityBean.errorCode = map['errorCode'];
    naviEntityBean.errorMsg = map['errorMsg'];
    return naviEntityBean;
  }

  Map toJson() => {
    "data": data,
    "errorCode": errorCode,
    "errorMsg": errorMsg,
  };
}


class DataBean {
  List<ArticlesBean>? articles;
  int? cid;
  String? name;

  static DataBean? fromMap(Map<String, dynamic> map) {
    if (map == null) return null;
    DataBean dataBean = DataBean();
    dataBean.articles = []..addAll(
      (map['articles'] as List).map((o) => ArticlesBean.fromMap(o)!)
    );
    dataBean.cid = map['cid'];
    dataBean.name = map['name'];
    return dataBean;
  }

  Map toJson() => {
    "articles": articles,
    "cid": cid,
    "name": name,
  };
}

class ArticlesBean {
  bool? adminAdd;
  String? apkLink;
  int? audit;
  String? author;
  bool? canEdit;
  int? chapterId;
  String? chapterName;
  bool? collect;
  int? courseId;
  String? desc;
  String? descMd;
  String? envelopePic;
  bool? fresh;
  String? host;
  int? id;
  bool? isAdminAdd;
  String? link;
  String? niceDate;
  String? niceShareDate;
  String? origin;
  String? prefix;
  String? projectLink;
  int? publishTime;
  int? realSuperChapterId;
  int? selfVisible;
  dynamic shareDate;
  String? shareUser;
  int? superChapterId;
  String? superChapterName;
  List<dynamic>? tags;
  String? title;
  int? type;
  int? userId;
  int? visible;
  int? zan;

  static ArticlesBean? fromMap(Map<String, dynamic> map) {
    if (map == null) return null;
    ArticlesBean articlesBean = ArticlesBean();
    articlesBean.adminAdd = map['adminAdd'];
    articlesBean.apkLink = map['apkLink'];
    articlesBean.audit = map['audit'];
    articlesBean.author = map['author'];
    articlesBean.canEdit = map['canEdit'];
    articlesBean.chapterId = map['chapterId'];
    articlesBean.chapterName = map['chapterName'];
    articlesBean.collect = map['collect'];
    articlesBean.courseId = map['courseId'];
    articlesBean.desc = map['desc'];
    articlesBean.descMd = map['descMd'];
    articlesBean.envelopePic = map['envelopePic'];
    articlesBean.fresh = map['fresh'];
    articlesBean.host = map['host'];
    articlesBean.id = map['id'];
    articlesBean.isAdminAdd = map['isAdminAdd'];
    articlesBean.link = map['link'];
    articlesBean.niceDate = map['niceDate'];
    articlesBean.niceShareDate = map['niceShareDate'];
    articlesBean.origin = map['origin'];
    articlesBean.prefix = map['prefix'];
    articlesBean.projectLink = map['projectLink'];
    articlesBean.publishTime = map['publishTime'];
    articlesBean.realSuperChapterId = map['realSuperChapterId'];
    articlesBean.selfVisible = map['selfVisible'];
    articlesBean.shareDate = map['shareDate'];
    articlesBean.shareUser = map['shareUser'];
    articlesBean.superChapterId = map['superChapterId'];
    articlesBean.superChapterName = map['superChapterName'];
    articlesBean.tags = map['tags'];
    articlesBean.title = map['title'];
    articlesBean.type = map['type'];
    articlesBean.userId = map['userId'];
    articlesBean.visible = map['visible'];
    articlesBean.zan = map['zan'];
    return articlesBean;
  }

  Map toJson() => {
    "adminAdd": adminAdd,
    "apkLink": apkLink,
    "audit": audit,
    "author": author,
    "canEdit": canEdit,
    "chapterId": chapterId,
    "chapterName": chapterName,
    "collect": collect,
    "courseId": courseId,
    "desc": desc,
    "descMd": descMd,
    "envelopePic": envelopePic,
    "fresh": fresh,
    "host": host,
    "id": id,
    "isAdminAdd": isAdminAdd,
    "link": link,
    "niceDate": niceDate,
    "niceShareDate": niceShareDate,
    "origin": origin,
    "prefix": prefix,
    "projectLink": projectLink,
    "publishTime": publishTime,
    "realSuperChapterId": realSuperChapterId,
    "selfVisible": selfVisible,
    "shareDate": shareDate,
    "shareUser": shareUser,
    "superChapterId": superChapterId,
    "superChapterName": superChapterName,
    "tags": tags,
    "title": title,
    "type": type,
    "userId": userId,
    "visible": visible,
    "zan": zan,
  };
}